package zjt.IO1;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class demo1 {
    public static void main(String[] args) {
        try {
            FileInputStream ip = new FileInputStream("D:\\itcast\\文档.txt");
            int read;
            while(true){
                try {
                    if (((read = ip.read())!=-1)){
                        System.out.println(read);
                    };
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

    }
}
